<%@page contentType="text/html; charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <style>
        input[name=captcha]{
            width: 80px;
        }

        img{
            height: 25px;
            vertical-align: bottom;
        }
        .error{
            color: red;
        }
    </style>
</head>
<body>
    <form action="login" method="post">
        用户名：<input type="text" name="username" required autofocus>
        <br>
        密 码：<input type="password" name="pass" required>
        <br>
        验证码：<input name="captcha" maxlength="5" minlength="5"/> <img src="captcha" />
        <br>
        <input type="checkbox" name="remember-me" value="1" />记住我
        <button type="submit">登录</button> <label class="error">${msg}</label>
    </form>
</body>
</html>